﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Edit_User" CodeFile="Edit_User.aspx.cs"
    MasterPageFile="~/MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>用户数据</title>
    <link href="../resources/styles/style.css" type="text/css" rel="stylesheet">
    <script src="../JavaScript/common.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <asp:UpdatePanel runat="server" ID="UpdatePanel1">
            <ContentTemplate>
                <table id="wsd_inputtable">
                    <tr>
                        <td colspan="4" class="tabletitle">
                            <font color="red" size="2"><b>提示:*为必填项</b></font>
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield" style="width: 30%; height: 30px;">
                            <span class="keyword">*</span>用户帐号:
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtName" runat="server" MaxLength="19" class="default"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请填写用户帐号"
                                ControlToValidate="txtName"></asp:RequiredFieldValidator>
                        </td>
                        <td class="tablefield" id="td_zzjg" runat="server">
                            部门:
                        </td>
                        <td nowrap="nowrap">
                            <asp:TextBox ID="txtOrg" runat="server" Enabled="false" class="default"></asp:TextBox>
                            <asp:DropDownList ID="ddlCity" runat="server" Visible="false">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield" style="width: 30%">
                            <span class="keyword">*</span>人员资料:
                        </td>
                        <td nowrap="nowrap" class="style2">
                            <asp:DropDownList ID="ddlPerson" runat="server" Width="150" AutoPostBack="True" DataTextField="NAME"
                                DataValueField="ID" OnSelectedIndexChanged="ddlPerson_SelectedIndexChanged">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请选择人员"
                                ControlToValidate="ddlPerson"></asp:RequiredFieldValidator>
                        </td>
                        <td class="tablefield">
                            用户角色:
                        </td>
                        <td nowrap="nowrap">
                            <asp:DropDownList ID="ddlGroup" runat="server" AutoPostBack="True" Width="150" OnSelectedIndexChanged="ddlGroup_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td id="txt_Chains" runat="server" class="tablefield" style="height: 28px">
                            经销商:
                        </td>
                        <td nowrap="nowrap" class="style2" colspan="3">
                            <asp:DropDownList ID="ddlChains" runat="server" Width="150">
                                <asp:ListItem Value="">--请选择--</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield">
                            启用:
                        </td>
                        <td nowrap="nowrap">
                            <asp:CheckBox ID="cbxValid" runat="server" Checked="True" />
                            <input id="txtHidOrg" type="hidden" runat="server" />
                        </td>
                        <td colspan="2">
                            <font color="red" size="4"><b>提示：初始默认密码为：<%# DefaultPassword %>，用户登录后请修改！</b></font>
                        </td>
                    </tr>
                    <tr id="chains" runat="server" visible="false">
                        <td class="tablefield" style="width: 30%">
                            &nbsp;
                        </td>
                        <td nowrap="nowrap">
                            <input id="txtHidChains" type="hidden" runat="server" />
                        </td>
                        <td class="tablefield">
                            &nbsp;
                        </td>
                        <td nowrap="nowrap">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
                <table id="wsd_inputtable">
                    <tr>
                        <td width="100%" class="tabletitle">
                            操作选项
                        </td>
                    </tr>
                    <tr>
                        <td class="buttonarea">
                            <asp:Button ID="btnSave" runat="server" class="wsd_button2" Text="提  交" OnClick="btnSave_Click" />&nbsp;&nbsp;
                            <input class="wsd_button2" id="Button15" onclick="location.href='User_List.aspx'"
                                value="返   回" name="Button2" type="button">
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
